import { forwardRef } from 'react';
import BizBody from '@inbiz/basic/BizBody';
import Content from './components/Content';
import type { BIProps } from './data.d';

const PreviewBIPieChart = (props: BIProps, ref:any) => {
  const { style = { height: '300px', padding: '0px 0px 0px 0px' } } = props;
  return (
    <BizBody
      style={{
        height: 'inherit',
        ...style,
      }}
    >
      <Content {...props}  ref={ref}/>
    </BizBody>
  );
};

export default forwardRef(PreviewBIPieChart);
